#!/bin/bash

# 配置必要环境
# sudo apt-get install build-essential libgtk2.0-dev libgtk-3-dev libavcodec-dev libavformat-dev libjpeg-dev libswscale-dev libtiff5-dev
# sudo apt install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
# sudo apt install libpng-dev libopenexr-dev libtiff-dev libwebp-dev

# 安装opencv
# wget -O opencv.zip https://github.com/opencv/opencv/archive/master.zip
# 默认安装路径为：
# /usr/local/bin - executable files
# /usr/local/lib - libraries (.so)
# /usr/local/cmake/opencv4 - cmake package
# /usr/local/include/opencv4 - headers
# /usr/local/share/opencv4 - other files (e.g. trained cascades in XML format)


rm ./log/*.log 
rm ./vap
g++ -o vap main.cpp  vap_utils.h  -lpthread -g -Wendif-labels

echo "build success\n"
./vap
